[BALLOON] Remove the static lower bound on memory target from balloon driver.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 30 May 2006 11:28:46 +0000 (12:28 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 30 May 2006 11:28:46 +0000 (12:28 +0100)
Experimentation an discussion on xen-devel concludes that a dynamic method
for determining safe balloon size will be required.
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c

index a1c2ea9d55cadacce61d3507e0b5cb12dcb76a02..b4ef5c1646b270d1d64846e73f03394be657d52f 100644 (file)
@@ -360,12 +360,6 @@ static void balloon_process(void *unused)
 /* Resets the Xen limit, sets new target, and kicks off processing. */
 static void set_new_target(unsigned long target)
 {
-       unsigned long min_target;
-
-       /* Do not allow target to reduce below 2% of maximum memory size. */
-       min_target = max_pfn / 50;
-       target = max(target, min_target);
-
        /* No need for lock. Not read-modify-write updates. */
        hard_limit   = ~0UL;
        target_pages = target;